<?php
// Define path to application directory
defined('APPLICATION_PATH')
	|| define('APPLICATION_PATH', 
			realpath(dirname(__FILE__) . '/application'));

// Define application environment
defined('APPLICATION_ENV')
	|| define('APPLICATION_ENV', 
			(getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
										: 'production'));
						
defined('DEFAULT_PATH')
	|| define('DEFAULT_PATH', 
			'application/templates/default');
	
defined('ADMIN_PATH')
	|| define('ADMIN_PATH', 
			'application/templates/admin');

defined('PUBLIC_IMG_PATH')
	|| define('PUBLIC_IMG_PATH', realpath(dirname(__FILE__) . '/public/resources'));

defined('PUBLIC_REQUIRED_PATH')
	|| define('PUBLIC_REQUIRED_PATH', realpath(dirname(__FILE__) . '/public'));
	
defined('PUBLIC_IMG_URL')
	|| define('PUBLIC_IMG_URL', '/public/resources');
	
defined('PUBLIC_PATH')
	|| define('PUBLIC_PATH', '/public');

defined('TEMPLATE_PATH')
	|| define('TEMPLATE_PATH', 'application/templates');
	
define('SCRIPTS_PATH', PUBLIC_PATH . '/scripts');
define('BOOTSTRAP_PATH', SCRIPTS_PATH . '/bootstrap');
//Duong dan den thu muc ung
define('APPLICATION_URL', '/phongtrovn');
define('SCRIPTS_URL', '/public/scripts');
define('EDITOR_URL', '/public/scripts/ckeditor');
define('USER_IMAGES_PATH',PUBLIC_IMG_PATH.'/user/user/avatars');
define('ADMIN_AVATAR_PATH',PUBLIC_IMG_PATH.'/user/admin/avatars');

define('TMP_PATH', 'public/resources/tmp/');
define('ADV_IMAGES_PATH', 'public/resources/advertising/');
define('NEWS_IMAGES_PATH', 'public/resources/news/');
define('NEWS_IMAGE_PREFIX1', '94_94_');
define('NEWS_IMAGE_PREFIX2', '50_50_');




// Typically, you will also want to add your library/ directory
// to the include_path, particulary if it containsyour Zend Framework installed
set_include_path(implode(PATH_SEPARATOR, array(
	dirname(__FILE__) . '/library',
	get_include_path(),
)));

/** Zend Apllication **/
require_once 'Zend/Application.php';
//require_once('FirePHPCore/FirePHP.class.php');

$environment = APPLICATION_ENV;
$options = APPLICATION_PATH . '/configs/application.ini';
$application = new Zend_Application($environment, $options);

$application->bootstrap()->run();